package com.sx.basic;

import com.alibaba.fastjson.JSON;

import java.io.Serializable;

/**
 * @author AdinZ
 * @date 2020/11/7 10:11
 */
public abstract class BasicEntity implements Serializable {
    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    public byte[] toByte(){
        return JSON.toJSONBytes(this);
    }

}
